package com.guigu.tms.commons.aggregation.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 角色的资源
 * </p>
 *
 * @author wj
 * @since 2022-10-21
 */
@TableName("pd_auth_role_authority")
public class AuthRoleAuthority implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;

    /**
     * 权限id
#c_auth_resource
#c_auth_menu
     */
    private Long authorityId;

    /**
     * 权限类型
#AuthorizeType{MENU:菜单;RESOURCE:资源;}
     */
    private String authorityType;

    /**
     * 角色id
#c_auth_role
     */
    private Long roleId;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 创建人
     */
    private Long createUser;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public Long getAuthorityId() {
        return authorityId;
    }

    public void setAuthorityId(Long authorityId) {
        this.authorityId = authorityId;
    }
    public String getAuthorityType() {
        return authorityType;
    }

    public void setAuthorityType(String authorityType) {
        this.authorityType = authorityType;
    }
    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }
    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }
    public Long getCreateUser() {
        return createUser;
    }

    public void setCreateUser(Long createUser) {
        this.createUser = createUser;
    }

    @Override
    public String toString() {
        return "AuthRoleAuthority{" +
            "id=" + id +
            ", authorityId=" + authorityId +
            ", authorityType=" + authorityType +
            ", roleId=" + roleId +
            ", createTime=" + createTime +
            ", createUser=" + createUser +
        "}";
    }
}
